import { defineComponent } from 'vue'
import Draw from './draw'
// 声明类型
const PropsType = {
  nodes: {
    type: Array,
    require: true
  }, nodeFlyTrailLines: {
    type: Array,
    require: true
  }
} as const
export default defineComponent({
  components: {
    Draw
  },
  props: PropsType,
  setup(props) {
    //console.log("index ts")
   // console.log(props)
    //console.log(props.nodes)
    return () => {
      return <div>
        <Draw nodes={props.nodes} nodeFlyTrailLines={props.nodeFlyTrailLines} />
      </div>
    }
  }
})